import { createApp } from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';
import * as ElementPlusIconsVue from '@element-plus/icons-vue';
import VueBaiduMap from 'vue-baidu-map-3x'; // 使用正确的插件

const app = createApp(App);

// 注册 Element Plus 图标
Object.entries(ElementPlusIconsVue).forEach(([key, component]) => {
  app.component(key, component);
});

app.use(ElementPlus);
app.use(store);
app.use(router);
app.use(VueBaiduMap, {
  ak: 'LwfcZDJUTU1wwxAZAL5qRHeaPkpikppj' // 你的百度地图 API Key
});

app.mount('#app');
